<!DOCTYPE html>
<html>
<head>
    <title>巡检记录选项关联</title>
    #parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
    <div id="deal" style="display: none">
        <form :model="devRecordOption" :model="devRecordOption" class="form-horizontal" >
            <div class="form-group">
                <div class="form-group">
                    <div class="col-sm-2 control-label">巡检计划</div>
                    <span class="label label-success" style="vertical-align: bottom;">{{devRecordOption.patrolPlanName}}</span>
                </div>
                <div class="form-group">
                    <div class="col-sm-2 control-label">检查结果</div>
                    <div class="col-sm-8" style="margin-top: 6px">
                        <Radio-group v-model="devRecordOption.status">
                            <Radio :label="0" ><span>否</span></Radio>
                            <Radio :label="1" ><span>是</span></Radio>
                        </Radio-group>
                    </div>
                </div>
            </div>
        </form>
    </div>
    <div v-show="showList">
        <Row :gutter="16" style="margin: 8px 0px 0px 1px">
            <div class="search-group">
                <i-col span="4">
                    <i-input v-model="q.name" @on-enter="query" placeholder="名称"></i-input>
                </i-col>
                <i-button @click="query">查询</i-button>
                <i-button @click="reloadSearch">重置</i-button>
            </div>
        </Row>
        <Row :gutter="16" style="margin: 3px 0px 0px 0px;">
            <div class="buttons-group">
                <i-button type="info" @click="deal"><i class="fa fa-pencil-square-o"></i>&nbsp;处理</i-button>
                #if($shiro.hasPermission("devrecordoption:add"))
                <i-button type="info" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</i-button>
                #end
                #if($shiro.hasPermission("devrecordoption:update"))
                <i-button type="warning" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</i-button>
                #end
                #if($shiro.hasPermission("devrecordoption:delete"))
                <i-button type="error" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</i-button>
                #end
            </div>
        </Row>
        <table id="jqGrid"></table>
    </div>

    <Card v-show="!showList">
        <p slot="title">{{title}}</p>
        <i-form ref="formValidate" :model="devRecordOption" :rules="ruleValidate" :label-width="90">
            <Row>
                <i-col span="11">
                    <Form-item label="巡检计划" prop="patrolPlan">
                        <i-input v-model="devRecordOption.patrolPlan" placeholder="巡检计划"></i-input>
                    </Form-item>
                </i-col>
                <i-col span="11">
                    <Form-item label="维护库选项名称" prop="mainBaseName">
                        <i-input v-model="devRecordOption.mainBaseName" placeholder="维护库选项名称"></i-input>
                    </Form-item>
                    <!--  <Form-item label="维护库选项ID" prop="mainBaseId">
                         <i-input v-model="devRecordOption.mainBaseId" placeholder="维护库选项ID"></i-input>
                     </Form-item>-->

                </i-col>
            </Row>
            <Row>
                <i-col span="11">
                    <Form-item label="计划执行人" prop="planUser">
                        <i-input v-model="devRecordOption.planUser" placeholder="计划执行人"></i-input>
                    </Form-item>
                </i-col>
                <i-col span="11">
                    <Form-item label="计划执行时间" prop="planDate">
                        <i-input v-model="devRecordOption.planDate" placeholder="计划执行时间"></i-input>
                    </Form-item>
                </i-col>
            </Row>
            <Row>
                <i-col span="11">
                    <Form-item label="是否正常" prop="status">
                        <i-input v-model="devRecordOption.status" placeholder="是否正常"></i-input>
                    </Form-item>
                </i-col>
            </Row>
            <!-- <Row>
                 <i-col span="11">
                     <Form-item label="维护库选项ID" prop="mainBaseId">
                         <i-input v-model="devRecordOption.mainBaseId" placeholder="维护库选项ID"></i-input>
                     </Form-item>
                 </i-col>
                 <i-col span="11">
                     <Form-item label="删除标识" prop="delFlag">
                         <i-input v-model="devRecordOption.delFlag" placeholder="删除标识"></i-input>
                     </Form-item>
                 </i-col>
                 <i-col span="11">
                     <Form-item label="检查日期" prop="chekDate">
                         <i-input v-model="devRecordOption.chekDate" placeholder="检查日期"></i-input>
                     </Form-item>
                 </i-col>
             </Row>
             <Row>
                 <i-col span="11">
                     <Form-item label="检查结果" prop="checkFlag">
                         <i-input v-model="devRecordOption.checkFlag" placeholder="检查结果"></i-input>
                     </Form-item>
                 </i-col>
                 <i-col span="11">
                     <Form-item label="规程管理ID" prop="recordId">
                         <i-input v-model="devRecordOption.recordId" placeholder="规程管理ID"></i-input>
                     </Form-item>
                 </i-col>
             </Row>
             <Row>
                 <i-col span="11">
                     <Form-item label="维护库选项名称" prop="mainBaseName">
                         <i-input v-model="devRecordOption.mainBaseName" placeholder="维护库选项名称"></i-input>
                     </Form-item>
                 </i-col>
                 <i-col span="11">
                     <Form-item label="修改人员" prop="updateUser">
                         <i-input v-model="devRecordOption.updateUser" placeholder="修改人员"></i-input>
                     </Form-item>
                 </i-col>
             </Row>
             <Row>
                 <i-col span="11">
                     <Form-item label="修改时间" prop="updateDate">
                         <i-input v-model="devRecordOption.updateDate" placeholder="修改时间"></i-input>
                     </Form-item>
                 </i-col>
                 <i-col span="11">
                     <Form-item label="添加人员" prop="createUser">
                         <i-input v-model="devRecordOption.createUser" placeholder="添加人员"></i-input>
                     </Form-item>
                 </i-col>
             </Row>
             <Row>
                 <i-col span="11">
                     <Form-item label="添加时间" prop="createDate">
                         <i-input v-model="devRecordOption.createDate" placeholder="添加时间"></i-input>
                     </Form-item>
                 </i-col>
             </Row>

             <Row>
                 <i-col span="11">
                     <Form-item label="检查人ID" prop="checkId">
                         <i-input v-model="devRecordOption.checkId" placeholder="检查人ID"></i-input>
                     </Form-item>
                 </i-col>
                 <i-col span="11">
                     <Form-item label="检查人" prop="checkName">
                         <i-input v-model="devRecordOption.checkName" placeholder="检查人"></i-input>
                     </Form-item>
                 </i-col>
             </Row>
             <i-col span="11">
                 <Form-item label="确认结果" prop="sureFlag">
                     <i-input v-model="devRecordOption.sureFlag" placeholder="确认结果"></i-input>
                 </Form-item>
             </i-col>-->
            <Form-item>
                <i-button type="primary" @click="handleSubmit('formValidate')">提交</i-button>
                <i-button type="warning" @click="reload" style="margin-left: 8px">
                返回</i-button>
                <i-button type="info" @click="handleReset('formValidate')" style="margin-left: 8px">重置</i-button>
            </Form-item>
        </i-form>
    </Card>
</div>

<script src="${rc.contextPath}/js/device/devrecordoption.js?_${date.systemTime}"></script>
</body>
</html>
